<template>
  <el-dialog
    title="提示"
    :visible.sync="dialogVisible"
    width="30%"
    :before-close="handleClose">
    <el-form :label-position="labelPosition" label-width="80px" :model="form">
      <el-form-item label="角色名称：">
          <el-input v-model="form.name"></el-input>
      </el-form-item>
      <el-form-item label="角色编码：">
          <el-input v-model="form.code"></el-input>
      </el-form-item>
      <el-form-item label="描述：">
          <el-input v-model="form.description" type="textarea" :rows="4"></el-input>
      </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script lang="ts">
import Vue from 'vue'

export default Vue.extend({
  name: 'RoleDialog',

  data () {
    return {
      form: {
        name: '',
        code: '',
        description: '',
        status: 1
      }
    }
  }
})
</script>

<style lang="scss" scoped>

</style>
